package com.example.demo.demos.repository;
import com.example.demo.demos.entity.UploadList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Repository
public interface UploadListRepository extends JpaRepository<UploadList, Long> {

    Page<UploadList> findByMsgContainingOrderByIdDesc(String name, Pageable pageable);

    Page<UploadList> findByIdIn(List<Integer> ids, Pageable pageable);

    Page<UploadList> findByStatusEquals(Integer status, Pageable pageable);

}